home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 23
/
Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso
/
Aminet
/
dev
/
amos
/
AMOS1097.lzh
/
AMOSLIST
/
000083_amos-request@svcs1.digex.net_Wed Oct 8 21:46:29 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-11-02
|
4KB
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id VAA05029
for <mcox@access.digex.net>; Wed, 8 Oct 1997 21:46:28 -0400 (EDT)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id TAA09517
for amos-out; Wed, 8 Oct 1997 19:21:10 -0400 (EDT)
Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id TAA09514
for <amos-list@svcs1.digex.net>; Wed, 8 Oct 1997 19:21:09 -0400 (EDT)
Received: from punt-1.mail.demon.net (punt-1b.mail.demon.net [194.217.242.135])
by mail2.access.digex.net (8.8.5/8.8.5) with SMTP id TAA24434
for <amos-list@access.digex.net>; Wed, 8 Oct 1997 19:21:07 -0400 (EDT)
Received: from agasinc.demon.co.uk ([193.237.4.98]) by punt-1.mail.demon.net
id aa1017103; 9 Oct 97 0:06 BST
From: Andy Gibson <andy@agasinc.demon.co.uk>
To: Cori Skagen <cskagen@ican.net>
CC: Amos List <amos-list@access.digex.net>
Date: Tue, 07 Oct 1997 22:55:54 -0000
Message-ID: <yam7219.2749.4112632@post.demon.co.uk>
In-Reply-To: <yam7219.1445.4178848@mail.ican.net>
X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
Organization: AGAS Productions
Subject: Re: Need help finding device names
MIME-Version: 1.0
Content-Type: text/plain
Status: O
X-Status:
On 07-Oct-97, Cori Skagen scribbled:
>Hi everyone,
Hello :)
>I was wondering if there's a way of finding the particular device
>that a volume belongs to:
>eg. Given "Workbench:" I want to find its particular device such as
> "dh0:"
>Its easy enough to find the volume name given the device by using
>the AMCAF extension, but I need to do it the other way around.
>Any help would be appreciated
Well, this does the opposite, but I'm sure you could fiddle about with
it and get the results and best of all, no extensions as suggested...
Cut and save as AMOSFILE.asc and load into Amos using the Merge Ascii
option from the Project menu...
'
' *****************************
' Get Volume Name From Device
' Without Any Extensions
' bY Andy Gibson - AGAS.
' Written during 1996
' *****************************
'
'
' If you have a disk in any drive and you want to kno what its name
' is (ie. Volume name) simply use the following code...
'
' You can use any device name such as DF0: DF1: HD0: DH0: etc.
'
' Hope this helps someone....
'
' It's good for all sorts of things. I think there are various
' extensions that can do this also, but I'm sure there is someone
' out there who asked for something like this a few days ago ;^)
'
PATH$="df1:" : Rem add a filename too if you want :)
XAMOUNT=Instr(PATH$,":")
SDISK$=Left$(PATH$,XAMOUNT)
FILE$=PATH$-SDISK$
Dir$=SDISK$ : OLD_DIR$=Dir$
FINAL$=OLD_DIR$+FILE$
Print FINAL$
'
' The printed result will be the name of the disk in DF1: in this
' example. It may be crude, but has never let me down.
'
' One example to use this for would be when an app lets the user
' enter some data to save. Most peeps would type....
' DF0:File, so now you can save to the correct disk for later
' accessing of their file from correct location. No more silly
' requestors asking for you to PLEASE INSERT DF0: IN ANY DRIVE!!!
'
' Andy Gibson - AGAS Productions.
'
'
--
___________________________________ ________________________________
| _ _ | |
| (-)/\//_)\/ AGAS Productions | #cONTACT mE fOR mORE iNFO# |
| Gibson_/ 9T7 | #oN aREA51 rELEASES aLSO!# |
| | |
| andy@agasinc.demon.co.uk | cOMING sOON'ish |
| | *Roswell Gfx Adv* |
| -=<(aka SKiDZ/A51)>=- | 9T7 |
|___________________________________|________________________________|